/**
 * 网站主页轮播图
 * 
 */
// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.isSiteIndexPage){
	
	
	
	var part_First = function(){
	
	// 上中部 小图轮播
	/*
		轮播,右下角原点--鼠标点击触发情况
		轮播：只获取轮播中一个a标签。
		以文字a标签为主，图片a标签尽量不要，title不稳定
	*/
	// 轮播前的标签
	_EsdDynamicTransformationScript.esdTagFrontNum1 = $("body > center > table:nth-child(2) > tbody > tr:nth-child(1) > td > table > tbody > tr > td:nth-child(1) > table > tbody > tr:nth-child(9) > td > a");

	// 文字A标签
	_EsdDynamicTransformationScript.esdTagANum1 = $("#jst-home_slider > div > ul > li:nth-child(1) > div > div.caption > p > a");
	_EsdDynamicTransformationScript.esdTagANum2 = $("#jst-home_slider > div > ul > li:nth-child(2) > div > div.caption > p > a");
	_EsdDynamicTransformationScript.esdTagANum3 = $("#jst-home_slider > div > ul > li:nth-child(3) > div > div.caption > p > a");
	_EsdDynamicTransformationScript.esdTagANum4 = $("#jst-home_slider > div > ul > li:nth-child(4) > div > div.caption > p > a");
	_EsdDynamicTransformationScript.esdTagANum5 = $("#jst-home_slider > div > ul > li:nth-child(5) > div > div.caption > p > a");

	// 原点
	_EsdDynamicTransformationScript.esdTagCircleNum1 = $("#jst-home_slider > ul.white_list > li:nth-child(1)");
	_EsdDynamicTransformationScript.esdTagCircleNum2 = $("#jst-home_slider > ul.white_list > li:nth-child(2)");
	_EsdDynamicTransformationScript.esdTagCircleNum3 = $("#jst-home_slider > ul.white_list > li:nth-child(3)");
	_EsdDynamicTransformationScript.esdTagCircleNum4 = $("#jst-home_slider > ul.white_list > li:nth-child(4)");
	_EsdDynamicTransformationScript.esdTagCircleNum5 = $("#jst-home_slider > ul.white_list > li:nth-child(5)");

	// 轮播后的标签
	_EsdDynamicTransformationScript.esdTagAfterNum1 = $("body > center > table:nth-child(2) > tbody > tr:nth-child(1) > td > table > tbody > tr > td:nth-child(2) > table > tbody > tr:nth-child(1) > td > table > tbody > tr > td:nth-child(1) > table > tbody > tr:nth-child(3) > td > a");

	//轮播前的焦点
	_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
		$(this).bind("keydown.keydown_rotation_0", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagCircleNum1.mouseover();
				_EsdDynamicTransformationScript.esdTagANum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
		$(this).unbind('keydown.keydown_rotation_0');
	});
	
	//第一块
	_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {
		$(this).bind("keydown.keydown_rotation_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagFrontNum1().focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagCircleNum2.mouseover();
				_EsdDynamicTransformationScript.esdTagANum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
		$(this).unbind('keydown.keydown_rotation_1');
	});
	
	//第二块
	_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {
		$(this).bind("keydown.keydown_rotation_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagCircleNum1.mouseover();
				_EsdDynamicTransformationScript.esdTagANum1.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagCircleNum3.mouseover();
				_EsdDynamicTransformationScript.esdTagANum3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
		$(this).unbind('keydown.keydown_rotation_2');
	});
	
	//第三块
	_EsdDynamicTransformationScript.esdTagANum3.focus(function (e) {
		$(this).bind("keydown.keydown_rotation_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagCircleNum2.mouseover();
				_EsdDynamicTransformationScript.esdTagANum2.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagCircleNum4.mouseover();
				_EsdDynamicTransformationScript.esdTagANum4.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTagANum3.blur(function () {
		$(this).unbind('keydown.keydown_rotation_3');
	});
	
	//第四块
	_EsdDynamicTransformationScript.esdTagANum4.focus(function (e) {
		$(this).bind("keydown.keydown_rotation_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagCircleNum3.mouseover();
				_EsdDynamicTransformationScript.esdTagANum3.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagCircleNum5.mouseover();
				_EsdDynamicTransformationScript.esdTagANum5.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTagANum4.blur(function () {
		$(this).unbind('keydown.keydown_rotation_4');
	});
	
	//第五块
	_EsdDynamicTransformationScript.esdTagANum5.focus(function (e) {
		$(this).bind("keydown.keydown_rotation_5", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagCircleNum4.mouseover();
				_EsdDynamicTransformationScript.esdTagANum4.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagAfterNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTagANum5.blur(function () {
		$(this).unbind('keydown.keydown_rotation_5');
	});
	
	//轮播后的焦点
	_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {
		$(this).bind("keydown.keydown_rotation_6", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagCircleNum5.mouseover();
				_EsdDynamicTransformationScript.esdTagANum5.focus();
				return false;
			}else if(e.keyCode==9){
				
			}
		});
	});
	_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
		$(this).unbind('keydown.keydown_rotation_6');
	});
	
	
	}
	
	
}
//***************	网站首页 end	***************	//